import request from '../utils/request';

export async function bindDevice(params) {
  return request('/api/organization/device/bind', {
    method: 'POST',
    body: params,
  });
};
export async function unbindDevice(body) {
  return request('/api/organization/device/unbind', {
    method: 'POST',
    body: body,
  });
};

export async function findBindDevices(body) {
  return request('/api/organization/devices/find', {
    method: 'POST',
    body: body,
  });
};

export async function bindMeter(params) {
  return request('/api/organization/meter/bind', {
    method: 'POST',
    body: params,
  });
};
export async function unbindMeter(body) {
  return request('/api/organization/meter/unbind', {
    method: 'POST',
    body: body,
  });
};

export async function findBindMeters(body) {
  return request('/api/organization/meters/find', {
    method: 'POST',
    body: body,
  });
};


export async function bindUsers(body) {
  return request('/api/organization/users/bind', {
    method: 'POST',
    body: body,
  });
};
export async function unbindUser(body) {
  return request('/api/organization/user/unbind', {
    method: 'POST',
    body: body,
  });
};
export async function findBindUsers(body) {
  return request('/api/organization/users/find', {
    method: 'POST',
    body: body,
  });
};
// router.post('/api/organization/user/bind', controller.organization.bindUser);
// router.post('/api/organization/users/bind', controller.organization.bindUsers);
// router.post('/api/organization/user/unbind', controller.organization.unbindUser);
// router.post('/api/organization/users/find', controller.organization.findBindUsers);
